// 统一请求路径前缀在libs/axios.js中修改
import {
  getRequest,
  postRequest,
  putRequest,
  deleteRequest
} from '@/libs/axios'

//获取财务管理-资金管理列表数据
export const getInList = (params) => {
  return postRequest(`/members/wallet/income`, params)
}
//获取财务管理-资金管理列表数据
export const getOutList = (params) => {
  return postRequest(`/members/wallet/outlay`, params)
}
//获取财务管理-资金管理头部统计数据
export const getAllTotal = () => {
  return postRequest(`/members/wallet/all`)
}
//获取财务管理-资金管理列表数据
export const getFinancialFund = () => {
  return new Promise((resolve, reject) => {
    resolve({
      result: {
        records: true
      }
    })
  })
}
//获取天使合伙人列表数据
export const getTSMember = (params) => {
  return getRequest(`/report/getTSMember`, params)
}
//获取天使合伙人B端列表数据
export const getBMember = (params) => {
  return getRequest(`/report/getBMember`, params)
}

//获取区域代理人报表数据
export const getQYMember = (params) => {
  return getRequest(`/report/getQYMember`, params)
}
// 事业合伙人统计
export const getSYMember = (params) => {
  return getRequest(`/report/getSYMember`, params)
}
// 财务管理 平台钱包 --start--
// 平台钱包
export const getWalletAll = () => {
  return getRequest(`/members/wallet/walletAll`)
}
// 平台 充值
export const PlantRecharge = (params) => {
  return postRequest(`/members/wallet/recharge`, params)
}
// 收款人信息
export const UserInfoByPhone = (phone) => {
  return getRequest(`/members/wallet/${phone}`)
}

// 平台 转账
export const PlantTransfer = (params) => {
  return postRequest(`/member/transfer/tradeDetail`, params)
}
// 平台 提现
export const PlantWithdrawal = (params) => {
  return postRequest(`/members/withdraw-apply/tradeDetail`, params)
}
// 平台 充值记录
export const PlantRechargeList = (params) => {
  return getRequest(`/recharge`, params)
}
// 平台 充值总金额
export const PlantRechargeAll = (params) => {
  return getRequest(`/recharge/rechargeMoneyAdmin`, params)
}
// 平台 转账记录
export const PlantTransferList = (params) => {
  return getRequest(`/member/transfer`, params)
}
// 平台 提现记录
export const PlantWithdrawList = (params) => {
  return getRequest(`/members/withdraw-apply/getList`, params)
}
// 平台 分佣记录 收入
export const PlantExtensionListIn = (params) => {
  return getRequest(`/wallet/detail/in`, params)
}
// 平台 分佣记录 支出
export const PlantExtensionListOut = (params) => {
  return getRequest(`/wallet/detail/out`, params)
}
// 平台 分佣记录总额 收入
export const PlantExtensionListAllIn = (params) => {
  return getRequest(`/wallet/detail/allMoneyAdminIn`, params)
}
// 平台 分佣记录总额 支出
export const PlantExtensionListAllOut = (params) => {
  return getRequest(`/wallet/detail/allMoneyAdminOut`, params)
}
// 销售钱包 支出 扣率信息 提现
export const SellExpenditureKoulvWithdraw = (params) => {
  return getRequest(`/members/withdraw-apply/getFeeList`, params)
}
// 销售钱包 支出 扣率信息 转账
export const SellExpenditureKoulvTransfer = (params) => {
  return getRequest(`/member/transfer/getFeeList`, params)
}
// 销售钱包 支出 扣率信息 订单
export const SellExpenditureKoulvOrder = (params) => {
  return getRequest(`/orders/getFeeList`, params)
}
// 财务管理 平台钱包 --end--


// 财务管理 提现管理 --start--
// 平台 分佣记录总额
export const PlantWithdrawalSale = (params) => {
  return getRequest(`/members/withdraw-apply/getSaleList`, params)
}
export const PlantWithdrawalSaleDetail = (params) => {
  return getRequest(`/members/withdraw-apply/getFeeList`, params)
}
export const PlantWithdrawalDakuan = (id) => {
  return postRequest(`/members/withdraw-apply/finish/${id}`)
}
export const PlantWithdrawalPromote = (params) => {
  return getRequest(`/members/withdraw-apply/getPromoteList`, params)
}
export const PlantWithdrawalAdmin = (params) => {
  return getRequest(`/members/withdraw-apply/getAdminList`, params)
}


// 财务管理 提现管理 --end--
